package prv.creational.builder;

/** A customer ordering a pizza. */
class Demo {
	public static void main(String[] args) {
		Waiter waiter = new Waiter();
		PizzaBuilder hawaiianPizzaBuilder = new HawaiianPizzaBuilder();
		PizzaBuilder spicyPizzaBuilder = new SpicyPizzaBuilder();

		waiter.setPizzaBuilder(spicyPizzaBuilder);
		waiter.constructPizza();

		Pizza pizza = waiter.getPizza();
		
		System.out.println(pizza.getDough());
		System.out.println(pizza.getSauce());
		System.out.println(pizza.getTopping());
	}
}
